<?php

class MessagebodyModel extends Model {
    public $tableName = "message_body";

    protected $belongs_to = array('bm_message');

    public function __construct() {
        
    }

    public function getSender() {
        return Model::factoryQuery('auth', "SELECT * FROM `user` WHERE id = ".$this->sender_id.";");
    }
}

?>
